package shoppingmall.manage.pojo;

/**
 * 实体类-对应数据库表tb_commodity_standard 商品规格表
 */
public class CommodityStandard {

    private int id;  //商品规格id
    private int commodityId;  //规格对应的商品id
    private String commodityAttr;  //对应的商品id规格属性
    private double commodityPrice;  //对应的商品id规格属性下的价格
    private int commodityStore;  //对应的商品id规格属性下的库存
    private String createTime;  //规格创建时间
    private String updateTime;  //规格更新时间

    public CommodityStandard() {
    }

    public CommodityStandard(int id, int commodityId, String commodityAttr, double commodityPrice, int commodityStore, String createTime, String updateTime) {
        this.id = id;
        this.commodityId = commodityId;
        this.commodityAttr = commodityAttr;
        this.commodityPrice = commodityPrice;
        this.commodityStore = commodityStore;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(int commodityId) {
        this.commodityId = commodityId;
    }

    public String getCommodityAttr() {
        return commodityAttr;
    }

    public void setCommodityAttr(String commodityAttr) {
        this.commodityAttr = commodityAttr;
    }

    public double getCommodityPrice() {
        return commodityPrice;
    }

    public void setCommodityPrice(double commodityPrice) {
        this.commodityPrice = commodityPrice;
    }

    public int getCommodityStore() {
        return commodityStore;
    }

    public void setCommodityStore(int commodityStore) {
        this.commodityStore = commodityStore;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }
}
